package top.yuechenc.manage.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "sp_user_cart")
public class SpUserCart {
    /**
     * 主键
     */
    @Id
    @Column(name = "cart_id")
    private Integer cartId;

    /**
     * 学员id
     */
    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "created_at")
    private Date createdAt;

    @Column(name = "updated_at")
    private Date updatedAt;

    @Column(name = "delete_time")
    private Date deleteTime;

    /**
     * 购物车详情信息，二维数组序列化信息
     */
    @Column(name = "cart_info")
    private String cartInfo;

    /**
     * 获取主键
     *
     * @return cart_id - 主键
     */
    public Integer getCartId() {
        return cartId;
    }

    /**
     * 设置主键
     *
     * @param cartId 主键
     */
    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    /**
     * 获取学员id
     *
     * @return user_id - 学员id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置学员id
     *
     * @param userId 学员id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return created_at
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * @param createdAt
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * @return updated_at
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * @param updatedAt
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * @return delete_time
     */
    public Date getDeleteTime() {
        return deleteTime;
    }

    /**
     * @param deleteTime
     */
    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    /**
     * 获取购物车详情信息，二维数组序列化信息
     *
     * @return cart_info - 购物车详情信息，二维数组序列化信息
     */
    public String getCartInfo() {
        return cartInfo;
    }

    /**
     * 设置购物车详情信息，二维数组序列化信息
     *
     * @param cartInfo 购物车详情信息，二维数组序列化信息
     */
    public void setCartInfo(String cartInfo) {
        this.cartInfo = cartInfo;
    }
}